package com.nuc.bigdata.feign;

import com.nuc.bigdata.domain.entity.Picture;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author JackLuo
 * @date 2019/11/14
 */
@FeignClient(name = "oa-picture")
public interface PictureServiceFeign {

    @PostMapping("/{userId}/single")
    Picture uploadPicture(@RequestParam("picture") MultipartFile file, @PathVariable("userId") String userId);

}
